<section class="widget">
    <h3 class="widget-title">最新评论</h3>
    <switch name="addons_config.comment_type">
	<case value="1">
	    <!-- UYAN NEW COMMENT BEGIN -->
		<div id="uyan_newcmt_unit"></div>
		<script type="text/javascript" src="http://v2.uyan.cc/code/uyan.js?uid=90040"></script> <!-- 如果已经过加载此行JS，即可不用重复加载 -->
		<!-- UYAN NEW COMMENT END -->
	</case>
	<case value="2">
	    <ul class="ds-recent-comments" data-num-items="{$addons_config.comment_data_list_duoshuo}" data-show-avatars="1" data-show-time="1" data-show-admin="1" data-excerpt-length="70"></ul>
		<!--多说js加载开始，一个页面只需要加载一次 -->
		<script type="text/javascript">
		var duoshuoQuery = {
			short_name:"{$addons_config.comment_short_name_duoshuo}"
		};
		(function() {
		    var ds = document.createElement('script');
		    ds.type = 'text/javascript';ds.async = true;
		    ds.src = 'http://static.duoshuo.com/embed.js';
		    ds.charset = 'UTF-8';
		    (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(ds);
		    $('.ds-recent-comments').addClass('widget-list');
		})();
		</script>
		<!--多说js加载结束，一个页面只需要加载一次 -->
	</case>
	</switch>
</section>
